/*
 * @(#)SystemProps.java Dec 21, 2007
 * 
 * Copyright 2007 by ChinanetCenter Corporation.
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ChinanetCenter Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with ChinanetCenter.
 * 
 */
package com.cnc.bas.util;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * @author 阿闲
 * @date   Dec 21, 2007
 * @version 1.0
 */
public class SystemProps {
	
	private static ResourceBundle rb = ResourceBundle.getBundle("system", new Locale("zh", "CN"), PropsUtil.class.getClassLoader());

	public static String getProperty(String key){
		return rb.getString(key).trim();
	}
	
	public static int getIntProperty(String key){		
		
		String value = getProperty(key);		
		return Integer.parseInt(value);
		
	}

}


